package org.jeecg.dev.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.dev.entity.DevEquipment;
import org.jeecg.dev.mapper.DevEquipmentMapper;
import org.jeecg.dev.service.IDevEquipmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Description: 设备台账表
 * @Author: jeecg-boot
 * @Date:   2022-03-05
 * @Version: V1.0
 */
@Service
@Transactional
public class DevEquipmentServiceImpl extends ServiceImpl<DevEquipmentMapper, DevEquipment> implements IDevEquipmentService {
    @Autowired
    private  DevEquipmentMapper devEquipmentMapper;


    @Override
    public Page<DevEquipment> getPage(Page<DevEquipment> page, DevEquipment devEquipment) {
        List<DevEquipment> devEquipmentList =  devEquipmentMapper.selectPages(page,devEquipment);
        return page.setRecords( devEquipmentList);
    }
}

